
#找列表最大和最小
def find_min_max(numbers=list):
    m=max(numbers)
    n=min(numbers)
    return m,n#元组
    #pass#空函数

    #total = f'最大值为{max(numbers)}，最小值为{min(numbers)}'
    #return total#string

# print(find_min_max([1,2,3,4,5,6]))
def su(n=int):
    for i in range(2,n):
        if n % i != 0 and n != i:
            i += 1
        else:
            return True
        if i*i>n:
            return False
    else:
        return False
#print(su(4))
if __name__=="__main__":
    l=[1,2,3,4,5,6]
    r=find_min_max(l)
    print(type(r))
    print(r[0],"就是最大值。",r[1],"就是最小值")
    a,b=find_min_max(l)
    print(a,b)
    #pass
    # for i in range(1,20):
    #     i+=2
    #     print(i)